package com.jnevision.deviceapply.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 设备申请
 * </p>
 *
 * @author gavin
 * @since 2019-07-14
 */
@TableName("b_device_apply")
public class DeviceApply extends Model<DeviceApply> {
    private static final long serialVersionUID = 7576174683728873837L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 借用人
     */
    @TableField("user_id")
    private String userId;

    /**
     * 申请物品
     */
    @TableField("loaned_goods")
    private String loanedGoods;

    /**
     * 申请时间
     */
    @TableField("loaned_time")
    private String loanedTime;

    /**
     * 归还时间
     */
    @TableField("back_time")
    private String backTime;

    /**
     * 申请理由
     */
    @TableField("reason")
    private String reason;
    
    @TableField("state")
    private Integer state;
    
    

    public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getLoanedGoods() {
        return loanedGoods;
    }

    public void setLoanedGoods(String loanedGoods) {
        this.loanedGoods = loanedGoods;
    }

    public String getLoanedTime() {
        return loanedTime;
    }

    public void setLoanedTime(String loanedTime) {
        this.loanedTime = loanedTime;
    }

    public String getBackTime() {
        return backTime;
    }

    public void setBackTime(String backTime) {
        this.backTime = backTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceApply{" + "id=" + id + ", userId=" + userId + ", loanedGoods=" + loanedGoods + ", loanedTime="
            + loanedTime + ", backTime=" + backTime + ", reason=" + reason + "}";
    }
}